
//
//  BaseModel.m
//  UI13_网页制作作业
//
//  Created by Liuiu on 15/12/25.
//  Copyright © 2015年 www.lanou3g.com. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel
-(instancetype)initWithDic:(NSDictionary *)Dic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:Dic];
    }
    return self;
}
+(instancetype)modeWithDic:(NSDictionary *)Dic
{
    id m = [[[self class] alloc] initWithDic:Dic];
    return m;
}
+(NSMutableArray *)modelHanderWithArray:(NSArray *)arr
{
    NSMutableArray *mArr = [NSMutableArray array];
    for (NSDictionary *dic in arr) {
        id m = [[self class] modeWithDic:dic];
        [mArr addObject:m];
    }
    return mArr;
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}




@end
